From: Florian Müllner Date: Mon, 22 Feb 2021 12:10:02 +0000 (+0100) Subject: overviewControls: Remove superfluous max() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~251 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e0c0662164995c21217860a2cff802a3b90891b4;p=gnome-shell.git overviewControls: Remove superfluous max() We don't need to call Math.max() to figure out the maximum of a single value :-) Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 673a596fb..7de141e0c 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -66,7 +66,7 @@ class ControlsManagerLayout extends Clutter.BoxLayout { workspaceBox.set_origin(0, searchHeight + spacing); workspaceBox.set_size( width, - Math.round(Math.max(height * SMALL_WORKSPACE_RATIO))); + Math.round(height * SMALL_WORKSPACE_RATIO)); break; }